home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0173.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  1.9 KB  |  49 lines

  1.  
  2. > Hello!
  3. > I have programmed a protein (wire-frame) viewing program
  4. > and I have experienced the same speed problems as you have.
  5. > After having optimized the code, I have started to translate
  6. > some routines in Assembler. Unfortunately, I was quite
  7. > disappointed at the speed-increase. Excepted a simple
  8. > Bubblesort routine which I use for a Z-sort and which
  9. > ran about 40 times faster, the rest did not even run
  10. > twice as fast as before. I'm not an Assembler expert, but
  11. > I tried to use registers and keep the data in the cache. I
  12. > don't believe that a good Assembler programmer would make it
  13. > run much faster.
  14. > Anyway, as the program rotates about 550 lines 5 times per
  15. > second on my A4000/040 and it did maybe 300 lines before
  16. > I used my Assembler routines, I guess that you could speed
  17. > up your actual program a lot by simply optimizing it!
  18. > (An A1200 can't be 15-20 times slower than a A4000, can it?)
  19.  
  20. Yes, my Amiga1200 is much slower than your A4000!
  21. I think I can reach 20 lines before it becomes too slow. 
  22. The routine cannot be optimized to much... they are only 3 loops which 
  23. execute moltiplication and addition... but the problem is that i have a 
  24. "dynamic matrix". It changes to modify the objects on the screen.
  25. So I have to store all new values into this matrix (which is 3x3).
  26. And then repeat all the calculations! 
  27.  
  28. > Secondly, use the TurboLib extension! The F_draw command is about
  29. > twice as fast as the AMOS command which makes an enormous speed
  30. > increase (in the current version of my program, 50% of the time
  31. > is consumed in the drawing routine!). You can also use the fast
  32. > command to clear the bitplanes.
  33.  
  34. I use turbo Extension. I use the Line 3d command (I hope it is optimized 
  35. as the f_draw!). But still everything is very slow!
  36.  
  37. > I have never tested Amos3D, but maybe this could also be of some
  38. > help? Anyone?
  39.  
  40. NOOOOO!!!!!!!!!!!!!!!!!!!!!!!!
  41. Please... no Amos3D. Thanks!
  42.  
  43. M&F
  44.  
  45.